package br.com.dreamsource.mobile.worders.pojo;

import br.com.dreamsource.mobile.jmesql.io.Properties;

/**
 *
 * @author Elizeu Nogueira da Rosa Jr;
 * @version 0.1
 * @date 20.05.2007
 *
 */

public class UserPOJO {

    private String userName;
    private String passwd;
    private String dbName;
    private String connectionURL;
            
    public UserPOJO() {
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }
    
    public String getConnectionURL() {
        return connectionURL;
    }

    public void setConnectionURL(String connectionURL) {
        this.connectionURL = connectionURL;
    }
    
    public Properties getAsProperties() {
        Properties p = new Properties();
        p.setProperty("user", this.userName);
        p.setProperty("password", this.passwd);
        p.setProperty("database", this.dbName);
        return p;
    }

}
